package com.example.tiptravel.entity.post;

import com.google.gson.annotations.SerializedName;

import java.util.List;

/**
 * Created by 张稳 on 2016/11/8.
 */

public class PostBean {

    private String status;
    private String msg;

    private DataEntity data;

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public DataEntity getData() {
        return data;
    }

    public void setData(DataEntity data) {
        this.data = data;
    }

    public static class DataEntity {
        private String count;
        private int nowPage;
        private int totalPage;

        private List<ResultEntity> result;

        public String getCount() {
            return count;
        }

        public void setCount(String count) {
            this.count = count;
        }

        public int getNowPage() {
            return nowPage;
        }

        public void setNowPage(int nowPage) {
            this.nowPage = nowPage;
        }

        public int getTotalPage() {
            return totalPage;
        }

        public void setTotalPage(int totalPage) {
            this.totalPage = totalPage;
        }

        public List<ResultEntity> getResult() {
            return result;
        }

        public void setResult(List<ResultEntity> result) {
            this.result = result;
        }

        public static class ResultEntity {
            @SerializedName("feed_id")
            private int feedId;
            @SerializedName("topic_id")
            private String topicId;
            private String location;
            private String ctime;
            @SerializedName("location_id")
            private int locationId;
            @SerializedName("location_type")
            private int locationType;
            @SerializedName("is_digg")
            private int isDigg;
            @SerializedName("digg_count")
            private int diggCount;
            @SerializedName("share_count")
            private int shareCount;
            @SerializedName("collect_count")
            private int collectCount;
            @SerializedName("comment_count")
            private int commentCount;
            @SerializedName("is_collect")
            private int isCollect;
            private int category;
            @SerializedName("feed_content")
            private String feedContent;
            @SerializedName("adv_type")
            private String advType;
            @SerializedName("need_login")
            private String needLogin;
            private UserEntity user;

            private ShareEntity share;

            private List<DiggsEntity> diggs;
            private List<?> comments;

            private List<ResourceEntity> resource;

            public int getFeedId() {
                return feedId;
            }

            public void setFeedId(int feedId) {
                this.feedId = feedId;
            }

            public String getTopicId() {
                return topicId;
            }

            public void setTopicId(String topicId) {
                this.topicId = topicId;
            }

            public String getLocation() {
                return location;
            }

            public void setLocation(String location) {
                this.location = location;
            }

            public String getCtime() {
                return ctime;
            }

            public void setCtime(String ctime) {
                this.ctime = ctime;
            }

            public int getLocationId() {
                return locationId;
            }

            public void setLocationId(int locationId) {
                this.locationId = locationId;
            }

            public int getLocationType() {
                return locationType;
            }

            public void setLocationType(int locationType) {
                this.locationType = locationType;
            }

            public int getIsDigg() {
                return isDigg;
            }

            public void setIsDigg(int isDigg) {
                this.isDigg = isDigg;
            }

            public int getDiggCount() {
                return diggCount;
            }

            public void setDiggCount(int diggCount) {
                this.diggCount = diggCount;
            }

            public int getShareCount() {
                return shareCount;
            }

            public void setShareCount(int shareCount) {
                this.shareCount = shareCount;
            }

            public int getCollectCount() {
                return collectCount;
            }

            public void setCollectCount(int collectCount) {
                this.collectCount = collectCount;
            }

            public int getCommentCount() {
                return commentCount;
            }

            public void setCommentCount(int commentCount) {
                this.commentCount = commentCount;
            }

            public int getIsCollect() {
                return isCollect;
            }

            public void setIsCollect(int isCollect) {
                this.isCollect = isCollect;
            }

            public int getCategory() {
                return category;
            }

            public void setCategory(int category) {
                this.category = category;
            }

            public String getFeedContent() {
                return feedContent;
            }

            public void setFeedContent(String feedContent) {
                this.feedContent = feedContent;
            }

            public String getAdvType() {
                return advType;
            }

            public void setAdvType(String advType) {
                this.advType = advType;
            }

            public String getNeedLogin() {
                return needLogin;
            }

            public void setNeedLogin(String needLogin) {
                this.needLogin = needLogin;
            }

            public UserEntity getUser() {
                return user;
            }

            public void setUser(UserEntity user) {
                this.user = user;
            }

            public ShareEntity getShare() {
                return share;
            }

            public void setShare(ShareEntity share) {
                this.share = share;
            }

            public List<DiggsEntity> getDiggs() {
                return diggs;
            }

            public void setDiggs(List<DiggsEntity> diggs) {
                this.diggs = diggs;
            }

            public List<?> getComments() {
                return comments;
            }

            public void setComments(List<?> comments) {
                this.comments = comments;
            }

            public List<ResourceEntity> getResource() {
                return resource;
            }

            public void setResource(List<ResourceEntity> resource) {
                this.resource = resource;
            }

            public static class UserEntity {
                private int uid;
                private int sex;
                private String uname;
                private String photo;

                public int getUid() {
                    return uid;
                }

                public void setUid(int uid) {
                    this.uid = uid;
                }

                public int getSex() {
                    return sex;
                }

                public void setSex(int sex) {
                    this.sex = sex;
                }

                public String getUname() {
                    return uname;
                }

                public void setUname(String uname) {
                    this.uname = uname;
                }

                public String getPhoto() {
                    return photo;
                }

                public void setPhoto(String photo) {
                    this.photo = photo;
                }
            }

            public static class ShareEntity {
                private String icon;
                private String title;
                private String text;
                private String url;

                public String getIcon() {
                    return icon;
                }

                public void setIcon(String icon) {
                    this.icon = icon;
                }

                public String getTitle() {
                    return title;
                }

                public void setTitle(String title) {
                    this.title = title;
                }

                public String getText() {
                    return text;
                }

                public void setText(String text) {
                    this.text = text;
                }

                public String getUrl() {
                    return url;
                }

                public void setUrl(String url) {
                    this.url = url;
                }
            }

            public static class DiggsEntity {
                private int id;
                private int uid;
                @SerializedName("feed_id")
                private int feedId;
                private String cTime;
                private String table;
                /**
                 * uid : 1502832
                 * uname : john.悦
                 * photo : http://7u2psp.com2.z0.glb.qiniucdn.com/5811f4d51b8ab216909.jpg
                 */

                private UserEntity user;

                public int getId() {
                    return id;
                }

                public void setId(int id) {
                    this.id = id;
                }

                public int getUid() {
                    return uid;
                }

                public void setUid(int uid) {
                    this.uid = uid;
                }

                public int getFeedId() {
                    return feedId;
                }

                public void setFeedId(int feedId) {
                    this.feedId = feedId;
                }

                public String getCTime() {
                    return cTime;
                }

                public void setCTime(String cTime) {
                    this.cTime = cTime;
                }

                public String getTable() {
                    return table;
                }

                public void setTable(String table) {
                    this.table = table;
                }

                public UserEntity getUser() {
                    return user;
                }

                public void setUser(UserEntity user) {
                    this.user = user;
                }

                public static class UserEntity {
                    private int uid;
                    private String uname;
                    private String photo;

                    public int getUid() {
                        return uid;
                    }

                    public void setUid(int uid) {
                        this.uid = uid;
                    }

                    public String getUname() {
                        return uname;
                    }

                    public void setUname(String uname) {
                        this.uname = uname;
                    }

                    public String getPhoto() {
                        return photo;
                    }

                    public void setPhoto(String photo) {
                        this.photo = photo;
                    }
                }
            }

            public static class ResourceEntity {
                private int type;
                private String url;
                private int w;
                private int h;

                public int getType() {
                    return type;
                }

                public void setType(int type) {
                    this.type = type;
                }

                public String getUrl() {
                    return url;
                }

                public void setUrl(String url) {
                    this.url = url;
                }

                public int getW() {
                    return w;
                }

                public void setW(int w) {
                    this.w = w;
                }

                public int getH() {
                    return h;
                }

                public void setH(int h) {
                    this.h = h;
                }
            }
        }
    }
}
